<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>客户</title>
	<include file="Public:header" />
	<style type="text/css">
		.input{width:130px; border:1px solid #ccc; padding:2px;}
	</style>
	<script type="text/javascript">
		var actflg="{:C('URL_MODEL')}"=="0"?"&":"?";
		
		function select_todo(value_id,value_code,value_title)
		{
			//window.parent.document.getElementById('{$objid}').value=value_id;
			//window.parent.document.getElementById('{$objtitle}').value=value_title;
			if("{$objid}"=="")
			{
				$.messager.show({title:'提示',msg:'参数错误',timeout:5000,showType:'slide'});
				return false;
			}
			if("{$objid}"!=""){ $("input[id='{$objid}']",window.parent.document).attr("value",value_id); }
			if("{$objcode}"!=""){ $("input[id='{$objcode}']",window.parent.document).attr("value",value_code); }
			if("{$objtitle}"!=""){ $("input[id='{$objtitle}']",window.parent.document).attr("value",value_title); }
			{$callback}
			parent.close_popup_window();
		}

	</script>
</head>
<body class="">
	<div class="demo-info space-out-5px">
		<div class="demo-tip icon-tip"></div>
		<div>点击需要选择的客户</div>
		<div>
		<form id="frm_search" method="post" action="{:U('Customer/customer_popup')}" style="margin:10px auto 0px 25px;">
		<div style="float:left; margin:0px; padding:2px;">
		<select id="cid" name="cid" class="easyui-combobox" editable="false" style="width:190px;">
								<option value='0'>顶级类别</option>
								<volist name='classlist' id="classlist">
								<option value='{$classlist["id"]}'><for start="2" end="$classlist['count']">|----</for>{$classlist['classname']}</option>
								</volist>
		</select>
		</div>
		<script type="text/javascript">$("#cid").attr("value","{$cid}");</script>
		<input type="hidden" id="objid" name="objid" class="" value="{$objid}" />
		<input type="hidden" id="objcode" name="objcode" class="" value="{$objcode}" />
		<input type="hidden" id="objtitle" name="objtitle" class="" value="{$objtitle}" />
		<input type="text" id="keywords" name="keywords" class="input" value="{$keywords}" />
        <input type="hidden" id="callback" name="callback" class="input" value="{$callback}" />
		<a href="javascript:;" class="easyui-linkbutton" iconCls="icon-search" onclick="$('#frm_search').submit();">搜索</a>
		</form>
		</div>
	</div>
	<div class=" space-out-10px">
	
	<div class="list-title">
		<div class="list-t-l w50px">ID</div>
		<div class="list-t-l">客户</div>
		<div class="list-t-r w50px">状态</div>
	</div>
	
	<div class="list-box">
	<volist name="datalist" id="datalist">
	<div class="list-body" onclick="javascript:select_todo('{$datalist.id}','{$datalist.stk_c}','{$datalist.stk_c} {$datalist.title}');">
		<div class="list-t-l w50px">{$datalist.id}</div>
		<div class="list-t-l">{$datalist.stk_c} {$datalist.title}</div>
		<div class="list-t-r w50px"><img src="__PUBLIC__/Images/{$datalist.status_flg}.png" alt="{$datalist.status_flg}" title="{$datalist.status_flg}" /></div>

	</div>
	</volist>
	</div>	
	
	</div>
	
	<div class="demo-info space-out-5px">
		<div class="demo-tip icon-tip"></div>
		<div class="pages">&nbsp;{$page}</div>
	</div>
</body>
</html>
